public static class ItemExtension
{
    private static int _serialId = 0;
    
    public static int GenerateSerialId()
    {
        return ++_serialId;
    }
}